-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFD image compatibility proposal #1845
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Marcin Franczyk <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mfranczy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @mfranczy! |
Hi @mfranczy. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/cc @ArangoGutierrez |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recognize all of this work! Thanks for opening this up @mfranczy - looks good to me. 👍
|
||
- `validate` - validate a NodeFeatureRule object (implemented in kubectl plugin). | ||
- `test` - test a NodeFeatureRule object against a node (implemented in kubectl plugin). | ||
- `dryrun` - DryRun a NodeFeatureRule object against a NodeFeature file (implemented in kubectl plugin). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you better explain "dryrun" ? I'm used to seeing it as --dryrun
to supplement a more clearly obvious action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am also used to see it as you. I kept it that way to be compatibile with the kubectl dryrun
command.
Co-authored-by: Carlos Eduardo Arango Gutierrez <[email protected]>
Signed-off-by: Marcin Franczyk <[email protected]>
I am in the process of building nfd client prototype. I reduced the scope with commands. ORAS SDK provides a lot of useful functions so there is no need to introduce much for artifact manipulation (thanks ORAS folks!). |
Thanks @mfranczy for the proposal. Just thinking aloud below, not proposing anything or having any answers. It looks like we need to rely on node labels to be able to integrate this with the kubernetes components (scheduler etc). If we want to do without changes to the kubernetes API or extend the kubernetes components with some plugins looking at NFD CRDs (or similar) or something exotic like that. What we need to think is the node label management on NFD side. We have a bunch of built-in labels (that get populated by just deploying NFD) but a lot of stuff is only visible in NodeFeatures only. For automatizing the creation NodeFeatureRules (a future, step, yes) we need to understand what we get automatically, from the built-in-labels and what we need custom labels for. We could use namespacing e.g. prefix all image compatibility labels with Regarding the expressions, would CEL (or parts of it) be useful there? |
@marquiz thanks for looking into it.
I think looking at NFD CRDs would be a good choice for start.
Right, a few missing pieces I already identified, like discovery of runtime configuration (
Looks very promising, I think we could use it. That's a good idea. |
A node don't know what images(not only one, usually many) will run on it until the image is scheduled to the node, and each image's compatibility may require different set of node features, it is difficult to set node feature rules to label node automatically. Considering the danymic situation, extending scheduler with plugin to validate the image compatibility and node features seems to be more viable. |
In that context agree - the scheduler would determine compatibility, but then the container runtime doing the pull would do so based on more fine-grained selection for optional performance. It would be scoped to what the scheduler scoped it to (architecture, GPU and devices, etc). |
@marquiz I will try to implement this in the prototype and will inform if there is anything that stops us to use CEL. |
Proposal to describe image requirements by using NFD labels and OCI artifact.